const Router = require('koa-router');
const { verifyCode } = require('../controller/verifyCode.controller');
const { verifyLogin, login, verifyToken, changePwd } = require('../controller/login.controller');

const loginRouter = new Router({ prefix: '/maintainers' });

loginRouter.post('/login', verifyCode, verifyLogin, login);

// 修改密码
loginRouter.post('/changePwd', verifyToken, changePwd);

module.exports = loginRouter;